home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / terminal / fixvt.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-11-16  |  598 b   |  26 lines

  1. #!/bin/sh
  2. #   fixvt 1.00
  3. #   Fixes console corruption from vt bombs and the like
  4. #    (c) 1994 Brian Stoler  --  sto2@netaxs.com
  5. #    Freely redistributable under the GPL 2
  6. #        Mail me any changes/fixes/etc
  7. #        Send flames to /dev/null -- I'm no scripter
  8. if [ -r /etc/?getty ]; then
  9.  DAG=/etc/?getty
  10. elif [ -r /sbin/?getty ]; then
  11.  DAG=/sbin/?getty
  12. elif [ -r /sbin/?getty ]; then
  13.  DAG=/sbin/getty_ps
  14. elif [ -r /sbin/?getty ]; then
  15.  DAG=/sbin/getty_ps
  16. elif [ -r $1 ]; then
  17.  DAG=$1
  18. else
  19.  echo NO GETTY FOUND -- PUT GETTY ON CMD LINE
  20.  exit 1
  21. fi
  22. cat $DAG
  23. echo c
  24. clear
  25. echo Display restored.
  26.